//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-04A
TN_Widget.CreateTable([['KC and The Sunshine Band','Roanoke Island Festival Park','Manteo, NC','Saturday','5/25/2024','7:00 PM','6254512','KC-and-The-Sunshine-Band-5-25-2024'],['The Beach Boys','Roanoke Island Festival Park','Manteo, NC','Saturday','6/15/2024','6:00 PM','6406356','The-Beach-Boys-6-15-2024'],['Michael Franti & Spearhead','Roanoke Island Festival Park','Manteo, NC','Sunday','6/30/2024','5:30 PM','6254513','Michael-Franti---Spearhead-6-30-2024'],['OBX Is For Lovers: Motion City Soundtrack, Hawthorne Heights, Less Than Jake, Thursday, Armor For Sleep & This Wild Life','Roanoke Island Festival Park','Manteo, NC','Saturday','7/20/2024','2:00 PM','6386602','OBX-Is-For-Lovers--Motion-City-Soundtrack--Hawthorne-Heights--Less-Than-Jake--Thursday--Armor-For-Sleep---This-Wild-Life-7-20-2024'],['Iration & Pepper','Roanoke Island Festival Park','Manteo, NC','Saturday','7/27/2024','6:00 PM','6344041','Iration---Pepper-7-27-2024'],['311','Roanoke Island Festival Park','Manteo, NC','Friday','8/9/2024','6:30 PM','6314961','311-8-9-2024'],['Sublime with Rome','Roanoke Island Festival Park','Manteo, NC','Thursday','8/29/2024','6:00 PM','6307694','Sublime-with-Rome-8-29-2024'],['Jamey Johnson','Roanoke Island Festival Park','Manteo, NC','Saturday','9/7/2024','6:00 PM','6385537','Jamey-Johnson-9-7-2024']],'Roanoke Island Festival Park','http://www.ticketnetwork.com/ticket/Roanoke-Island-Festival-Park-events.aspx');